<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/Common Module/power_manager.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_df4e0e4e72f77ab290fd1a24f190250a.html">Common Module</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle"><div class="title">power_manager.c 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="version_8h_source.html">version.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="bsp__init_8h_source.html">bsp_init.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="power__manager_8h_source.html">power_manager.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
power_manager.c 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="power__manager_8c__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2power__manager_8c" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2power__manager_8c" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2power__manager_8c">
<area shape="rect" title=" " alt="" coords="819,5,1043,75"/>
<area shape="rect" href="version_8h.html" title="版本/目标控制" alt="" coords="5,269,79,295"/>
<area shape="rect" href="bsp__init_8h.html" title="板级硬件外设初始化" alt="" coords="892,123,971,148"/>
<area shape="rect" href="power__manager_8h.html" title=" " alt="" coords="1663,123,1787,148"/>
<area shape="rect" title=" " alt="" coords="797,343,884,368"/>
<area shape="rect" href="dev__systick_8h.html" title="系统滴答定时器" alt="" coords="367,269,469,295"/>
<area shape="rect" href="dev__uart_8h.html" title="调试日志串口打印" alt="" coords="493,269,575,295"/>
<area shape="rect" href="dev__bod_8h.html" title="低电压触发配置" alt="" coords="599,269,679,295"/>
<area shape="rect" href="dev__rtc_8h.html" title="RTC 在线计时(No VBAT)" alt="" coords="703,269,778,295"/>
<area shape="rect" href="dev__crc_8h.html" title="硬件 CRC" alt="" coords="802,269,879,295"/>
<area shape="rect" href="dev__sfc_8h.html" title="SPI&#45;Flash Control 硬件专用高速模块" alt="" coords="904,269,980,295"/>
<area shape="rect" href="dev__sdram_8h.html" title="芯片内置 SDRAM" alt="" coords="1004,269,1099,295"/>
<area shape="rect" href="dev__sdio_8h.html" title="SDIO 驱动 SD 卡" alt="" coords="930,196,1013,221"/>
<area shape="rect" href="dev__jpeg_8h.html" title="JPEG 硬件解码" alt="" coords="111,196,194,221"/>
<area shape="rect" href="dev__dac_8h.html" title="DAC 音频播放" alt="" coords="1174,269,1254,295"/>
<area shape="rect" href="dev__lcd_8h.html" title="LCD 驱动显示" alt="" coords="1088,196,1164,221"/>
<area shape="rect" href="dev__touch_8h.html" title="TP 触摸设备驱动层" alt="" coords="218,196,309,221"/>
<area shape="rect" href="dev__sleep__stop_8h.html" title="浅/深睡眠" alt="" coords="1189,196,1311,221"/>
<area shape="rect" href="usbh__user_8h.html" title="USB Host 用户配置" alt="" coords="1335,196,1429,221"/>
<area shape="rect" title=" " alt="" coords="1453,196,1578,221"/>
<area shape="rect" title=" " alt="" coords="1603,196,1727,221"/>
<area shape="rect" title=" " alt="" coords="1751,196,1869,221"/>
<area shape="rect" title=" " alt="" coords="1893,196,2023,221"/>
<area shape="rect" title=" " alt="" coords="2048,196,2169,221"/>
<area shape="rect" title=" " alt="" coords="2193,196,2317,221"/>
<area shape="rect" href="jfif__parser_8h.html" title="jpeg 图片 jfif 格式解析" alt="" coords="154,269,242,295"/>
<area shape="rect" title=" " alt="" coords="1430,269,1523,295"/>
<area shape="rect" href="usbh__conf_8h.html" title="USB Host Config" alt="" coords="2393,269,2485,295"/>
<area shape="rect" href="usbh__msc__conf_8h.html" title="USB Host MSC 类配置" alt="" coords="2377,343,2501,368"/>
</map>
</div>
</div>
<p><a href="power__manager_8c_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:aec9b8b25cdba2b2a4db7ea6e200e1662"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="power__manager_8c.html#aec9b8b25cdba2b2a4db7ea6e200e1662">PM_LOG</a>(...)</td></tr>
<tr class="memdesc:aec9b8b25cdba2b2a4db7ea6e200e1662"><td class="mdescLeft">&#160;</td><td class="mdescRight">模块调试日志打印宏  <a href="power__manager_8c.html#aec9b8b25cdba2b2a4db7ea6e200e1662">更多...</a><br /></td></tr>
<tr class="separator:aec9b8b25cdba2b2a4db7ea6e200e1662"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ab9c5028de96a56cb56cd352d70cf1b87"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="power__manager_8c.html#ab9c5028de96a56cb56cd352d70cf1b87">sleep_request_clean</a> (void)</td></tr>
<tr class="memdesc:ab9c5028de96a56cb56cd352d70cf1b87"><td class="mdescLeft">&#160;</td><td class="mdescRight">进入睡眠模式前的环境清理  <a href="power__manager_8c.html#ab9c5028de96a56cb56cd352d70cf1b87">更多...</a><br /></td></tr>
<tr class="separator:ab9c5028de96a56cb56cd352d70cf1b87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0607f7307b006db734b10c8b94bb909e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="power__manager_8c.html#a0607f7307b006db734b10c8b94bb909e">sleep_resume_restore</a> (void)</td></tr>
<tr class="memdesc:a0607f7307b006db734b10c8b94bb909e"><td class="mdescLeft">&#160;</td><td class="mdescRight">退出睡眠模式后的环境恢复  <a href="power__manager_8c.html#a0607f7307b006db734b10c8b94bb909e">更多...</a><br /></td></tr>
<tr class="separator:a0607f7307b006db734b10c8b94bb909e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa125d952f6750a2c86b46ecfc611b399"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="power__manager_8c.html#aa125d952f6750a2c86b46ecfc611b399">pm_request</a> (<a class="el" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">pm_mode_t</a> mode)</td></tr>
<tr class="memdesc:aa125d952f6750a2c86b46ecfc611b399"><td class="mdescLeft">&#160;</td><td class="mdescRight">请求进入某种电源模式  <a href="power__manager_8c.html#aa125d952f6750a2c86b46ecfc611b399">更多...</a><br /></td></tr>
<tr class="separator:aa125d952f6750a2c86b46ecfc611b399"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07250972b4737e676c66368d6b55a53f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="power__manager_8c.html#a07250972b4737e676c66368d6b55a53f">pm_register</a> (<a class="el" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">pm_mode_t</a> mode, void(*request_cb)(void), void(*resume_cb)(void))</td></tr>
<tr class="memdesc:a07250972b4737e676c66368d6b55a53f"><td class="mdescLeft">&#160;</td><td class="mdescRight">注册电源模式变化时的回调函数  <a href="power__manager_8c.html#a07250972b4737e676c66368d6b55a53f">更多...</a><br /></td></tr>
<tr class="separator:a07250972b4737e676c66368d6b55a53f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:a3c4c6eea77c2517d9b66ac4f6d335d71"><td class="memItemLeft" align="right" valign="top">static void(*volatile&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="power__manager_8c.html#a3c4c6eea77c2517d9b66ac4f6d335d71">sleep_request_cb</a> )(void) = <a class="el" href="power__manager_8c.html#ab9c5028de96a56cb56cd352d70cf1b87">sleep_request_clean</a></td></tr>
<tr class="separator:a3c4c6eea77c2517d9b66ac4f6d335d71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbef8fc57314a19ea86ee1b3f1613a49"><td class="memItemLeft" align="right" valign="top">static void(*volatile&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="power__manager_8c.html#abbef8fc57314a19ea86ee1b3f1613a49">sleep_resume_cb</a> )(void) = <a class="el" href="power__manager_8c.html#a0607f7307b006db734b10c8b94bb909e">sleep_resume_restore</a></td></tr>
<tr class="separator:abbef8fc57314a19ea86ee1b3f1613a49"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="aec9b8b25cdba2b2a4db7ea6e200e1662" name="aec9b8b25cdba2b2a4db7ea6e200e1662"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec9b8b25cdba2b2a4db7ea6e200e1662">&#9670;&#160;</a></span>PM_LOG</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PM_LOG</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>模块调试日志打印宏 </p>

<p class="definition">在文件 <a class="el" href="power__manager_8c_source.html">power_manager.c</a> 第 <a class="el" href="power__manager_8c_source.html#l00035">35</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="ab9c5028de96a56cb56cd352d70cf1b87" name="ab9c5028de96a56cb56cd352d70cf1b87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9c5028de96a56cb56cd352d70cf1b87">&#9670;&#160;</a></span>sleep_request_clean()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void sleep_request_clean </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>进入睡眠模式前的环境清理 </p>
<dl class="section note"><dt>注解</dt><dd>用户应关掉有可能影响休眠以及占用 IO 的外设 </dd></dl>

<p class="definition">在文件 <a class="el" href="power__manager_8c_source.html">power_manager.c</a> 第 <a class="el" href="power__manager_8c_source.html#l00121">121</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="power__manager_8c_ab9c5028de96a56cb56cd352d70cf1b87_cgraph.png" border="0" usemap="#apower__manager_8c_ab9c5028de96a56cb56cd352d70cf1b87_cgraph" alt=""/></div>
<map name="apower__manager_8c_ab9c5028de96a56cb56cd352d70cf1b87_cgraph" id="apower__manager_8c_ab9c5028de96a56cb56cd352d70cf1b87_cgraph">
<area shape="rect" title="进入睡眠模式前的环境清理" alt="" coords="5,5,147,31"/>
<area shape="rect" href="dev__dac_8c.html#ae6564f4952cc109138c86b644e9585d9" title="恢复 DAC 驱动端口以及功放静音控制脚的默认状态, 使能静音" alt="" coords="195,5,305,31"/>
</map>
</div>

</div>
</div>
<a id="a0607f7307b006db734b10c8b94bb909e" name="a0607f7307b006db734b10c8b94bb909e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0607f7307b006db734b10c8b94bb909e">&#9670;&#160;</a></span>sleep_resume_restore()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void sleep_resume_restore </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>退出睡眠模式后的环境恢复 </p>
<dl class="section note"><dt>注解</dt><dd>用户应恢复所有外设/引脚的预期配置 </dd></dl>

<p class="definition">在文件 <a class="el" href="power__manager_8c_source.html">power_manager.c</a> 第 <a class="el" href="power__manager_8c_source.html#l00160">160</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="power__manager_8c_a0607f7307b006db734b10c8b94bb909e_cgraph.png" border="0" usemap="#apower__manager_8c_a0607f7307b006db734b10c8b94bb909e_cgraph" alt=""/></div>
<map name="apower__manager_8c_a0607f7307b006db734b10c8b94bb909e_cgraph" id="apower__manager_8c_a0607f7307b006db734b10c8b94bb909e_cgraph">
<area shape="rect" title="退出睡眠模式后的环境恢复" alt="" coords="5,227,156,252"/>
<area shape="rect" href="dev__dac_8c.html#aab3eb615ca98a910e727b600de131c18" title="配置 DAC 驱动端口以及功放静音控制脚, 开启声音" alt="" coords="225,79,321,104"/>
<area shape="rect" href="dev__lcd_8c.html#a12e086c686f4e114e18e768751447d51" title="初始化 LCD 驱动端口" alt="" coords="227,128,319,153"/>
<area shape="rect" href="dev__lcd_8c.html#ae4ceaa98ea8b4df351fe6a6fb0ad648b" title="LCD 背光亮度调节" alt="" coords="215,177,331,203"/>
<area shape="rect" href="dev__sdram_8c.html#a1ca4fa8f2864c10eb1fe5f8b59bc121d" title="配置芯片内置的 SDRAM 驱动端口" alt="" coords="218,227,329,252"/>
<area shape="rect" href="dev__sfc_8c.html#a3e07babe174017b09f2d82c4951172c8" title="配置 SFC 专用驱动端口" alt="" coords="227,276,319,301"/>
<area shape="rect" href="dev__touch_8c.html#ad79fb3af238f076a0aa90e32a43ab77e" title="初始化触摸设备驱动" alt="" coords="234,325,313,351"/>
<area shape="rect" href="dev__uart_8c.html#aadbe4996756dcc6199bc9ec2e4969993" title="配置串口打印调试日志的端口" alt="" coords="204,375,343,400"/>
<area shape="rect" href="dev__lcd_8c.html#a5fde234d07ab6108ae49cf34ade6840b" title=" " alt="" coords="401,5,625,31"/>
<area shape="rect" href="dev__lcd_8c.html#a5982bad5406f090f3002af63e6c7b50c" title=" " alt="" coords="394,55,633,80"/>
<area shape="rect" href="dev__lcd_8c.html#a6bff0d4a04ee925bcf465ab8c69597c4" title=" " alt="" coords="391,104,636,129"/>
<area shape="rect" href="dev__lcd_8c.html#a11d5ea914cd252ca6c1cdd86b6ee98bd" title=" " alt="" coords="391,153,636,179"/>
<area shape="rect" href="dev__lcd_8c.html#adece8690dca2cec88697e9a53d814eb6" title=" " alt="" coords="391,203,636,228"/>
<area shape="rect" href="dev__lcd_8c.html#ae8a0cecf0f50e2388567aa19b9e0f8e6" title=" " alt="" coords="391,252,636,277"/>
<area shape="rect" href="dev__uart_8c.html#ac12e742cf904e08383401dd68a88001b" title="串口（SWD）端口功能切换" alt="" coords="455,375,572,400"/>
</map>
</div>

</div>
</div>
<a id="aa125d952f6750a2c86b46ecfc611b399" name="aa125d952f6750a2c86b46ecfc611b399"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa125d952f6750a2c86b46ecfc611b399">&#9670;&#160;</a></span>pm_request()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pm_request </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">pm_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>请求进入某种电源模式 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">mode</td><td>: 电源模式 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="power__manager_8c_source.html">power_manager.c</a> 第 <a class="el" href="power__manager_8c_source.html#l00067">67</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="power__manager_8c_aa125d952f6750a2c86b46ecfc611b399_cgraph.png" border="0" usemap="#apower__manager_8c_aa125d952f6750a2c86b46ecfc611b399_cgraph" alt=""/></div>
<map name="apower__manager_8c_aa125d952f6750a2c86b46ecfc611b399_cgraph" id="apower__manager_8c_aa125d952f6750a2c86b46ecfc611b399_cgraph">
<area shape="rect" title="请求进入某种电源模式" alt="" coords="5,80,96,105"/>
<area shape="rect" href="dev__sleep__stop_8c.html#a4d4c631bc1d45f13302e7f874c8337eb" title="进入浅睡眠模式, 被唤醒后会退出该函数恢复程序继续执行, 外设工作状态以及 RAM 数据将会保持." alt="" coords="144,55,221,80"/>
<area shape="rect" href="dev__sleep__stop_8c.html#a5b06de9b1a4503a9890c7ae85f041c58" title="进入停止模式, 芯片完全停止工作" alt="" coords="147,104,218,129"/>
<area shape="rect" href="dev__rtc_8c.html#aedd83f0c9b0f418ce1097807c1b5d186" title="RTC 初始化" alt="" coords="306,5,367,31"/>
<area shape="rect" href="dev__sleep__stop_8c.html#af1f29b7ae72111910d2e931d0b9d376e" title="设置 USB 模块低功耗模式" alt="" coords="269,55,404,80"/>
<area shape="rect" href="dev__sleep__stop_8c.html#a2369e14249cb4d6ef0b9be70ea030440" title="关闭所有引脚的上拉和下拉电阻, 以及不需要唤醒功能的 IO 输入使能" alt="" coords="291,104,382,129"/>
</map>
</div>

</div>
</div>
<a id="a07250972b4737e676c66368d6b55a53f" name="a07250972b4737e676c66368d6b55a53f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07250972b4737e676c66368d6b55a53f">&#9670;&#160;</a></span>pm_register()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pm_register </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">pm_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void(*)(void)&#160;</td>
          <td class="paramname"><em>request_cb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void(*)(void)&#160;</td>
          <td class="paramname"><em>resume_cb</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>注册电源模式变化时的回调函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">mode</td><td>: 电源模式 </td></tr>
    <tr><td class="paramname">request_cb</td><td>: 请求进入电源模式的回调 </td></tr>
    <tr><td class="paramname">resume_cb</td><td>: 释放退出电源模式的回调 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>用户接口预留, 若没有注册, 则按本模块自带的默认实现, 若同一模式多次注册, 以最后一次注册传入参数为准. </dd></dl>

<p class="definition">在文件 <a class="el" href="power__manager_8c_source.html">power_manager.c</a> 第 <a class="el" href="power__manager_8c_source.html#l00097">97</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="a3c4c6eea77c2517d9b66ac4f6d335d71" name="a3c4c6eea77c2517d9b66ac4f6d335d71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c4c6eea77c2517d9b66ac4f6d335d71">&#9670;&#160;</a></span>sleep_request_cb</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void(*volatile sleep_request_cb) (void) </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> = <a class="el" href="power__manager_8c.html#ab9c5028de96a56cb56cd352d70cf1b87">sleep_request_clean</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="power__manager_8c_source.html">power_manager.c</a> 第 <a class="el" href="power__manager_8c_source.html#l00056">56</a> 行定义.</p>

</div>
</div>
<a id="abbef8fc57314a19ea86ee1b3f1613a49" name="abbef8fc57314a19ea86ee1b3f1613a49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbef8fc57314a19ea86ee1b3f1613a49">&#9670;&#160;</a></span>sleep_resume_cb</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void(*volatile sleep_resume_cb) (void) </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> = <a class="el" href="power__manager_8c.html#a0607f7307b006db734b10c8b94bb909e">sleep_resume_restore</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="power__manager_8c_source.html">power_manager.c</a> 第 <a class="el" href="power__manager_8c_source.html#l00057">57</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
